import { BuyerSignatureUploadForm } from '@/lib/shi-signature/upload-form';
import { SignatureList } from '@/lib/shi-signature/signature-list';
import { getAllSignatures } from '@/lib/shi-signature/buyer-signature';

export default async function BuyerSignaturePage() {
  const signatures = await getAllSignatures();

  return (
    <div className="container mx-auto py-8 max-w-4xl">
      <div className="space-y-8">
        <div>
          <h1 className="text-3xl font-bold">구매자 서명 관리</h1>
          <p className="text-muted-foreground mt-2">
            계약서에 자동으로 적용될 삼성중공업 서명을 관리합니다.
          </p>
        </div>

        <BuyerSignatureUploadForm />
        
        <SignatureList signatures={signatures} />
      </div>
    </div>
  );
}